package br.inf.solutions.apresentacoes.ssp.view.composer;

import org.springframework.context.annotation.Scope;

import br.com.vexillum.util.ReflectionUtils;
import br.com.vexillum.util.SpringFactory;
import br.inf.solutions.apresentacoes.ssp.control.FinishingController;
import br.inf.solutions.apresentacoes.ssp.model.Finishing;
import br.inf.solutions.apresentacoes.ssp.view.composer.basicforms.BasicFormsComposer;

@SuppressWarnings("serial")
@org.springframework.stereotype.Component
@Scope("prototype")
public class FinishingComposer extends
		BasicFormsComposer<Finishing, FinishingController> {

	@Override
	protected String getUpdatePage() {
		return "/paginas/acabamento/modalCadastrar.zul";
	}

	@Override
	public FinishingController getControl() {
		return SpringFactory.getController("finishingController",
				FinishingController.class,
				ReflectionUtils.prepareDataForPersistence(this));
	}

	@Override
	public Finishing getEntityObject() {
		return new Finishing();
	}

}
